﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AxTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void shopsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataTable tbl = new DataTable();
            Exception err = new Ko2.DB.Ax().GetShops(ref tbl);
            gv.DataSource = tbl;
        }

        private void tradeProgressToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataTable tbl = new DataTable();
            Exception err = new Ko2.DB.Ax().GetTradeProgress(ref tbl, DateTime.Now.AddDays(-1), "Академика Янгеля");
            gv.DataSource = tbl;
        }

        private void shopsRegionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataTable tbl = new DataTable();
            Exception err = new Ko2.DB.Ax().GetShopsRegions(ref tbl);
            gv.DataSource = tbl;
        }

    }
}
